<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: I2C_Private_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">I2C_Private_Functions<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a> &raquo; <a class="el" href="group___i2_c.html">I2C</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga475ebf7c2c0f64e9631fb1ed82d6bb32">I2C_DeInit</a> (void)</td></tr>
<tr class="memdesc:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the I2C peripheral registers to their default reset values.  <a href="#ga475ebf7c2c0f64e9631fb1ed82d6bb32">More...</a><br /></td></tr>
<tr class="separator:ga475ebf7c2c0f64e9631fb1ed82d6bb32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga1b5cee4c873630ae2d38c5301ce6dfef">I2C_Init</a> (<a class="el" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a> *I2C_InitStruct)</td></tr>
<tr class="memdesc:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the I2C peripheral according to the specified parameters in the I2C_InitStruct.  <a href="#ga1b5cee4c873630ae2d38c5301ce6dfef">More...</a><br /></td></tr>
<tr class="separator:ga1b5cee4c873630ae2d38c5301ce6dfef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga9cc0585acf034965b8e1bd7e6564a9d0">I2C_SlaveAddressConfig</a> (uint32_t SlaveAddress)</td></tr>
<tr class="memdesc:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the I2C slave address.  <a href="#ga9cc0585acf034965b8e1bd7e6564a9d0">More...</a><br /></td></tr>
<tr class="separator:ga9cc0585acf034965b8e1bd7e6564a9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3764b44c393d3142ff528b3777367181"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga3764b44c393d3142ff528b3777367181">I2C_HighSpeedModeCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga3764b44c393d3142ff528b3777367181"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures I2C high speed mode.  <a href="#ga3764b44c393d3142ff528b3777367181">More...</a><br /></td></tr>
<tr class="separator:ga3764b44c393d3142ff528b3777367181"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga273ed4a9322317b6167a351c5d9c22a6">I2C_Start</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga273ed4a9322317b6167a351c5d9c22a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral start status.  <a href="#ga273ed4a9322317b6167a351c5d9c22a6">More...</a><br /></td></tr>
<tr class="separator:ga273ed4a9322317b6167a351c5d9c22a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga967813684e605713eadf012bacb3d6b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga967813684e605713eadf012bacb3d6b5">I2C_Stop</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga967813684e605713eadf012bacb3d6b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral stop status.  <a href="#ga967813684e605713eadf012bacb3d6b5">More...</a><br /></td></tr>
<tr class="separator:ga967813684e605713eadf012bacb3d6b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga51127006ab0941f6cc9b1d4fe77b06c8">I2C_ACK</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets or clears I2C peripheral ACK status.  <a href="#ga51127006ab0941f6cc9b1d4fe77b06c8">More...</a><br /></td></tr>
<tr class="separator:ga51127006ab0941f6cc9b1d4fe77b06c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae696416c6624783e6f3240742a1a474f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gae696416c6624783e6f3240742a1a474f">I2C_Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gae696416c6624783e6f3240742a1a474f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables I2C peripheral.  <a href="#gae696416c6624783e6f3240742a1a474f">More...</a><br /></td></tr>
<tr class="separator:gae696416c6624783e6f3240742a1a474f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gac8fd48b27115ed75fad89fc467c0fc4c">I2C_AckGeneralCallCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the general ack.  <a href="#gac8fd48b27115ed75fad89fc467c0fc4c">More...</a><br /></td></tr>
<tr class="separator:gac8fd48b27115ed75fad89fc467c0fc4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga13a1acbae3361144dcd5c222987f3569"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga13a1acbae3361144dcd5c222987f3569">I2C_ReceiveByte</a> (uint8_t *pData)</td></tr>
<tr class="memdesc:ga13a1acbae3361144dcd5c222987f3569"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads data from data register.  <a href="#ga13a1acbae3361144dcd5c222987f3569">More...</a><br /></td></tr>
<tr class="separator:ga13a1acbae3361144dcd5c222987f3569"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#gaae912ddb3e54a26e4ec17e35e8ee1858">I2C_WriteByte</a> (uint8_t I2C_DataCmd)</td></tr>
<tr class="memdesc:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write one byte data.  <a href="#gaae912ddb3e54a26e4ec17e35e8ee1858">More...</a><br /></td></tr>
<tr class="separator:gaae912ddb3e54a26e4ec17e35e8ee1858"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9bfdf853316172ce00fd5745847c83c9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga9bfdf853316172ce00fd5745847c83c9">I2C_WriteAddress</a> (uint8_t Address, uint8_t I2C_Direction)</td></tr>
<tr class="memdesc:ga9bfdf853316172ce00fd5745847c83c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the slave address byte by the direction.  <a href="#ga9bfdf853316172ce00fd5745847c83c9">More...</a><br /></td></tr>
<tr class="separator:ga9bfdf853316172ce00fd5745847c83c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga65c074c0c585882e5f469f49c98f1bac"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga65c074c0c585882e5f469f49c98f1bac">I2C_CheckFlag</a> (uint32_t *I2C_Flag)</td></tr>
<tr class="memdesc:ga65c074c0c585882e5f469f49c98f1bac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the last I2C module status flag.  <a href="#ga65c074c0c585882e5f469f49c98f1bac">More...</a><br /></td></tr>
<tr class="separator:ga65c074c0c585882e5f469f49c98f1bac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga969097bd9d6c5dc41289093f4af6526c"><td class="memItemLeft" align="right" valign="top">ITStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga969097bd9d6c5dc41289093f4af6526c">I2C_GetITStatus</a> (void)</td></tr>
<tr class="memdesc:ga969097bd9d6c5dc41289093f4af6526c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether I2C interrupt has occurred or not.  <a href="#ga969097bd9d6c5dc41289093f4af6526c">More...</a><br /></td></tr>
<tr class="separator:ga969097bd9d6c5dc41289093f4af6526c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___i2_c___private___functions.html#ga92a27b9faaa5d38b47971b39e43a9411">I2C_ClearITPendingBit</a> (void)</td></tr>
<tr class="memdesc:ga92a27b9faaa5d38b47971b39e43a9411"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears I2C interrupt pending bit.  <a href="#ga92a27b9faaa5d38b47971b39e43a9411">More...</a><br /></td></tr>
<tr class="separator:ga92a27b9faaa5d38b47971b39e43a9411"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga51127006ab0941f6cc9b1d4fe77b06c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga51127006ab0941f6cc9b1d4fe77b06c8">&#9670;&nbsp;</a></span>I2C_ACK()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_ACK </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets or clears I2C peripheral ACK status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the I2C ack status. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gac8fd48b27115ed75fad89fc467c0fc4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac8fd48b27115ed75fad89fc467c0fc4c">&#9670;&nbsp;</a></span>I2C_AckGeneralCallCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_AckGeneralCallCmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the general ack. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the general ack function. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga65c074c0c585882e5f469f49c98f1bac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga65c074c0c585882e5f469f49c98f1bac">&#9670;&nbsp;</a></span>I2C_CheckFlag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group___i2_c.html#ga9bec282875cd65e00172e875ef785bec">I2CStatus</a> I2C_CheckFlag </td>
          <td>(</td>
          <td class="paramtype">uint32_t *&#160;</td>
          <td class="paramname"><em>I2C_Flag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gets the last I2C module status flag. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>I2C Status enumeration value:<ul>
<li>I2C_SUCCESS: Get the i2c module status</li>
<li>I2C_WAITING: Can't get the i2c module status </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga92a27b9faaa5d38b47971b39e43a9411"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga92a27b9faaa5d38b47971b39e43a9411">&#9670;&nbsp;</a></span>I2C_ClearITPendingBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_ClearITPendingBit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears I2C interrupt pending bit. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae696416c6624783e6f3240742a1a474f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae696416c6624783e6f3240742a1a474f">&#9670;&nbsp;</a></span>I2C_Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_Cmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables I2C peripheral. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the I2C peripheral. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga475ebf7c2c0f64e9631fb1ed82d6bb32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga475ebf7c2c0f64e9631fb1ed82d6bb32">&#9670;&nbsp;</a></span>I2C_DeInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_DeInit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deinitializes the I2C peripheral registers to their default reset values. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga969097bd9d6c5dc41289093f4af6526c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga969097bd9d6c5dc41289093f4af6526c">&#9670;&nbsp;</a></span>I2C_GetITStatus()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ITStatus I2C_GetITStatus </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks whether I2C interrupt has occurred or not. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">The</td><td>new state of I2C_IT (SET or RESET). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga3764b44c393d3142ff528b3777367181"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga3764b44c393d3142ff528b3777367181">&#9670;&nbsp;</a></span>I2C_HighSpeedModeCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_HighSpeedModeCmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures I2C high speed mode. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the I2C high speed mode. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1b5cee4c873630ae2d38c5301ce6dfef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1b5cee4c873630ae2d38c5301ce6dfef">&#9670;&nbsp;</a></span>I2C_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_i2_c___init_type_def.html">I2C_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>I2C_InitStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the I2C peripheral according to the specified parameters in the I2C_InitStruct. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">I2C_InitStruct</td><td>Pointer to I2C initialization structure. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga13a1acbae3361144dcd5c222987f3569"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga13a1acbae3361144dcd5c222987f3569">&#9670;&nbsp;</a></span>I2C_ReceiveByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_ReceiveByte </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>pData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Reads data from data register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pData</td><td>pointer to reveive date buffer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9cc0585acf034965b8e1bd7e6564a9d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9cc0585acf034965b8e1bd7e6564a9d0">&#9670;&nbsp;</a></span>I2C_SlaveAddressConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_SlaveAddressConfig </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>SlaveAddress</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the I2C slave address. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">SlaveAddress</td><td>specifies the I2C slave address. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga273ed4a9322317b6167a351c5d9c22a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga273ed4a9322317b6167a351c5d9c22a6">&#9670;&nbsp;</a></span>I2C_Start()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_Start </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets or clears I2C peripheral start status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the I2C start status. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga967813684e605713eadf012bacb3d6b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga967813684e605713eadf012bacb3d6b5">&#9670;&nbsp;</a></span>I2C_Stop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_Stop </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Sets or clears I2C peripheral stop status. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>The new state of the I2C stop status. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9bfdf853316172ce00fd5745847c83c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9bfdf853316172ce00fd5745847c83c9">&#9670;&nbsp;</a></span>I2C_WriteAddress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_WriteAddress </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>Address</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>I2C_Direction</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write the slave address byte by the direction. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">Address</td><td>specifies the slave address to write. </td></tr>
    <tr><td class="paramname">I2C_Direction</td><td>specifies whether the I2C device will be a Transmitter or a Receiver. This parameter can be one of the following values <ul>
<li>I2C_Direction_Transmitter: Transmitter mode </li>
<li>I2C_Direction_Receiver: Receiver mode </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaae912ddb3e54a26e4ec17e35e8ee1858"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaae912ddb3e54a26e4ec17e35e8ee1858">&#9670;&nbsp;</a></span>I2C_WriteByte()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void I2C_WriteByte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>I2C_DataCmd</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write one byte data. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">I2C_DataCmd</td><td>the data and command to send. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None.</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
